package com.len.service.impl;

import com.len.base.BaseMapper;
import com.len.base.impl.BaseServiceImpl;
import com.len.entity.TTaskDetails;
import com.len.mapper.TaskDetailsMapper;
import com.len.service.TaskDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TaskDetailsImpl  extends BaseServiceImpl<TTaskDetails,String> implements
        TaskDetailsService {

    @Autowired
    private TaskDetailsMapper taskDetailsMapper;
    @Override
    public BaseMapper<TTaskDetails, String> getMappser() {
        return taskDetailsMapper;
    }

    public List<TTaskDetails> selectAllByOrderNo(String orderNo){
        return taskDetailsMapper.selectAllByOrderNo(orderNo);
    }

    public void delAllByOrderNo(String orderNo){
        taskDetailsMapper.delAllByOrderNo(orderNo);
    }
}
